package com.lancoo.cvas.mapper;

import com.lancoo.cvas.config.MybatisRedisCache;
import com.lancoo.cvas.entity.Teacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lancoo.cvas.pojo.vo.AllScheduleVo;
import org.apache.ibatis.annotations.CacheNamespace;

import java.util.List;

/**
 * 教师
 * 
 * @author liufeng
 * @email 1037383243@qq.com
 * @date 2023-12-04 11:54:00
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface TeacherMapper extends BaseMapper<Teacher> {

    void addBatch(List<Teacher> addTeacher);

    /**
     * @Description: teacherName 被改成name
     * @Author: liufeng
     * @Date: 2024/1/12 14:49
     * @param schoolId:
     * @param term:
     * @param deleted:
     * @return:
     */
    List<AllScheduleVo> getTeacherNameForSchedule(String schoolId, String term, int deleted);


    /**
     * 获取教师列表
     * @param schoolId
     * @param term
     * @return
     */
    List<Teacher> selectTeacherList(String schoolId, String term);

    /**
     * 获取教师列表
     * @param taskId
     * @param teacherIds
     * @return
     */
    List<Teacher> getTeacherList(List<Long> teacherIds);
}
